import globals from "globals";
import pluginJs from "@eslint/js";
import pluginVue from "eslint-plugin-vue";

/** @type {import('eslint').Linter.Config[]} */
export default [
  { files: ["**/*.{js,mjs,cjs,vue}"] },
  {
    ignores: [
      "dist",
      "node_modules",
      "public",
      ".husky",
      ".vscode",
      ".idea",
      "*.sh",
      "*.md",
      ".eslintrc.cjs",
      ".prettierrc.cjs",
      ".stylelintrc.cjs",
      "*.config.js",
    ],
  },
  { languageOptions: { globals: globals.browser } },
  pluginJs.configs.recommended,
  ...pluginVue.configs["flat/essential"],
  {
    rules: {
      "vue/multi-word-component-names": 0,
      "*": "off",
    },
  },
];
